package com.example.tianyidemo.utils;
import org.springframework.stereotype.Component;
import java.util.Random;

@Component
public class RandomNumberGenerator {

    public String generateRandomSixDigitNumber() {
        Random random = new Random();
        int randomNumber = random.nextInt(900000) + 100000;  // 生成一个六位数
        return String.valueOf(randomNumber);
    }
}
